<!DOCTYPE html>
<html>
<head>
    <title>banner</title>
		<#include "/header.html">
    <script src="${request.contextPath}/statics/libs/ajaxupload.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:jxbanner:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:jxbanner:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:jxbanner:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">banner位置</div>
                <div class="col-sm-10">
                    <select class="form-control"  v-model="jxBanner.type"  @change="changeType($event)"    >
                        <option value="1" >主页上方</option>
                        <option value="2" >主页中间</option>
                        <option value="3" >主页下方</option>
                        <option value="4" >实验室上方</option>
                        <option value="5" >资料上方</option>
                    </select>
                </div>
            </div>
            <div class="form-group"  >
                <div class="col-sm-2 control-label">宣传图片</div>
                <div class="col-sm-10">
                    <img  style="width:100%; height: 200px"  id="video"   src="${request.contextPath}/statics/img/undefined.png"  />
                    <div>
                        <span style="padding-left:0px;font-size: 5px;">图片尺寸{{imgWh}}</span>
                    </div>
                    <a class="btn btn-primary" id="upload"><i class="fa fa-plus"></i>&nbsp;上传文件</a>
                </div>
            </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">标题</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="jxBanner.title" placeholder="标题"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">跳转地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="jxBanner.linkUrl" placeholder="点击允许跳转地址"/>
                        </div>
                    </div>



											                    <div class="form-group">
                        <div class="col-sm-2 control-label">排序</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="jxBanner.orderNum" placeholder="排序"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/jxbanner.js?_${.now?long}"></script>
</body>
</html>